package com.alibaba.citrus.cr.mn.order.center.common.constants;

/**
 * @auther dongju.fyj
 * @date 2023/6/17
 */
public class RedisLockConstants {

    public static final String CACHE_CODE = "REDIS_CACHE";
    /**
     * 循环获取锁的间隔时间（毫秒）
     */
    public static final int SLEEP_MILLIS = 100;
    /**
     * 获取锁的超时时间（毫秒）
     */
    public static final int TIMEOUT_MSECS = 0;
    /**
     * 锁过期时间（毫秒）
     */
    public static final int EXPIRE_MSECS = 60 * 1000;

    public static final String EXCHANGE_ORDER_ATOM_PREFIX = "exchange_order_atom:";
    public static final String EXCHANGE_ORDER_BIZ_PREFIX = "exchange_order_biz:";

    public static final String RETURN_ORDER_ATOM_PREFIX = "return_order_atom:";
    public static final String RETURN_ORDER_BIZ_PREFIX = "return_order_biz:";
    public static final String RETURN_ORDER_GROUP_PREFIX = "return_order_group:";

    public static final String SALES_ORDER_ATOM_PREFIX = "sales_order_atom:";
    public static final String SALES_ORDER_BIZ_PREFIX = "sales_order_biz:";
    public static final String SALES_ORDER_GROUP_PREFIX = "sales_order_group:";
    public static final String SALES_ORDER_DIRECT_PREFIX = "sales_order_direct:";

    public static final String FORECAST_ORDER_BIZ_PREFIX = "forecast_order_biz:";
    public static final String FORECAST_ORDER_GROUP_PREFIX = "forecast_order_group:";

    public static final String ACTIVITY_BIZ_PREFIX = "activity_biz:";

}
